|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcontrol.Community
public class Community
This class permits to create the Cartesian product of all community states and all final states of a set of available services
| Field Summary | |
|---|---|
private AvailableServices |
availableService
|
| Constructor Summary | |
|---|---|
Community(AvailableServices as)
|
|
| Method Summary | |
|---|---|
java.util.Iterator<CState> |
getCommunityStates()
returns an iterator on community states created on fly |
java.util.Iterator<CState> |
getFinalCommunityStates()
returns on iterator on final community states created on fly |
CState |
getInitialStates()
gets the initial community state |
Service |
getService(int index)
gets the service in the specified position |
int |
getServicePosition(Service service)
gets the position of a service in the set of available services |
boolean |
isFinalCommunityState(CState cs)
checks if a state of the community is final |
int |
size()
community size |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private AvailableServices availableService
| Constructor Detail |
|---|
public Community(AvailableServices as)
| Method Detail |
|---|
public Service getService(int index)
index - - the position
public java.util.Iterator<CState> getCommunityStates()
public java.util.Iterator<CState> getFinalCommunityStates()
public CState getInitialStates()
public int getServicePosition(Service service)
service - - the service we want to find
public boolean isFinalCommunityState(CState cs)
cs - - the community's state to check
public int size()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||